body {
    font-family: 'Noto Sans SC', sans-serif;
    overflow: hidden;
}

.note-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
}

.refresh-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
}

.close-btn:hover, .refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.notes-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.note {
    position: absolute;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform-origin: center;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 200px;
    word-wrap: break-word;
    z-index: 100;
    opacity: 0; /* 初始状态为透明 */
    transform: scale(0.5) rotate(0deg); /* 初始状态为缩小 */
}

.note.visible {
    opacity: 1; /* 显示状态为不透明 */
    transform: scale(1) rotate(var(--rotation)); /* 显示状态为正常大小和旋转角度 */
}

.note:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    z-index: 101;
}

.note-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* 便签进入动画 */
@keyframes noteAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation));
    }
}

/* 便签关闭动画 */
@keyframes noteDisappear {
    from {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation));
    }
    to {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
}

/* 便签轻微摇摆效果 */
@keyframes noteFloat {
    0% {
        transform: rotate(var(--rotation)) translate(0, 0);
    }
    50% {
        transform: rotate(calc(var(--rotation) + 1deg)) translate(0, -5px);
    }
    100% {
        transform: rotate(var(--rotation)) translate(0, 0);
    }
}

.floating {
    animation: noteFloat 5s ease-in-out infinite;
}